Optimal. Leaf size=328 \[ \frac {\text {ArcTan}\left (1-\frac {\sqrt {2} \sqrt {e \tan (c+d x)}}{\sqrt {e}}\right )}{\sqrt {2} a d e^{5/2}}-\frac {\text {ArcTan}\left (1+\frac {\sqrt {2} \sqrt {e \tan (c+d x)}}{\sqrt {e}}\right )}{\sqrt {2} a d e^{5/2}}+\frac {\log \left (\sqrt {e}+\sqrt {e} \tan (c+d x)-\sqrt {2} \sqrt {e \tan (c+d x)}\right )}{2 \sqrt {2} a d e^{5/2}}-\frac {\log \left (\sqrt {e}+\sqrt {e} \tan (c+d x)+\sqrt {2} \sqrt {e \tan (c+d x)}\right )}{2 \sqrt {2} a d e^{5/2}}+\frac {2 e (1-\sec (c+d x))}{7 a d (e \tan (c+d x))^{7/2}}-\frac {2 (7-5 \sec (c+d x))}{21 a d e (e \tan (c+d x))^{3/2}}+\frac {5 F\left (\left .c-\frac {\pi }{4}+d x\right |2\right ) \sec (c+d x) \sqrt {\sin (2 c+2 d x)}}{21 a d e^2 \sqrt {e \tan (c+d x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.30, antiderivative size = 328, normalized size of antiderivative = 1.00, number of
steps used = 18, number of rules used = 14, integrand size = 25, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.560, Rules used
= {3973, 3967, 3969, 3557, 335, 217, 1179, 642, 1176, 631, 210, 2694, 2653, 2720}
\begin {gather*} \frac {\text {ArcTan}\left (1-\frac {\sqrt {2} \sqrt {e \tan (c+d x)}}{\sqrt {e}}\right )}{\sqrt {2} a d e^{5/2}}-\frac {\text {ArcTan}\left (\frac {\sqrt {2} \sqrt {e \tan (c+d x)}}{\sqrt {e}}+1\right )}{\sqrt {2} a d e^{5/2}}+\frac {\log \left (\sqrt {e} \tan (c+d x)-\sqrt {2} \sqrt {e \tan (c+d x)}+\sqrt {e}\right )}{2 \sqrt {2} a d e^{5/2}}-\frac {\log \left (\sqrt {e} \tan (c+d x)+\sqrt {2} \sqrt {e \tan (c+d x)}+\sqrt {e}\right )}{2 \sqrt {2} a d e^{5/2}}+\frac {5 \sqrt {\sin (2 c+2 d x)} \sec (c+d x) F\left (\left .c+d x-\frac {\pi }{4}\right |2\right )}{21 a d e^2 \sqrt {e \tan (c+d x)}}-\frac {2 (7-5 \sec (c+d x))}{21 a d e (e \tan (c+d x))^{3/2}}+\frac {2 e (1-\sec (c+d x))}{7 a d (e \tan (c+d x))^{7/2}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 210
Rule 217
Rule 335
Rule 631
Rule 642
Rule 1176
Rule 1179
Rule 2653
Rule 2694
Rule 2720
Rule 3557
Rule 3967
Rule 3969
Rule 3973
Rubi steps
\begin {align*} \int \frac {1}{(a+a \sec (c+d x)) (e \tan (c+d x))^{5/2}} \, dx &=\frac {e^2 \int \frac {-a+a \sec (c+d x)}{(e \tan (c+d x))^{9/2}} \, dx}{a^2}\\ &=\frac {2 e (1-\sec (c+d x))}{7 a d (e \tan (c+d x))^{7/2}}+\frac {2 \int \frac {\frac {7 a}{2}-\frac {5}{2} a \sec (c+d x)}{(e \tan (c+d x))^{5/2}} \, dx}{7 a^2}\\ &=\frac {2 e (1-\sec (c+d x))}{7 a d (e \tan (c+d x))^{7/2}}-\frac {2 (7-5 \sec (c+d x))}{21 a d e (e \tan (c+d x))^{3/2}}+\frac {4 \int \frac {-\frac {21 a}{4}+\frac {5}{4} a \sec (c+d x)}{\sqrt {e \tan (c+d x)}} \, dx}{21 a^2 e^2}\\ &=\frac {2 e (1-\sec (c+d x))}{7 a d (e \tan (c+d x))^{7/2}}-\frac {2 (7-5 \sec (c+d x))}{21 a d e (e \tan (c+d x))^{3/2}}+\frac {5 \int \frac {\sec (c+d x)}{\sqrt {e \tan (c+d x)}} \, dx}{21 a e^2}-\frac {\int \frac {1}{\sqrt {e \tan (c+d x)}} \, dx}{a e^2}\\ &=\frac {2 e (1-\sec (c+d x))}{7 a d (e \tan (c+d x))^{7/2}}-\frac {2 (7-5 \sec (c+d x))}{21 a d e (e \tan (c+d x))^{3/2}}-\frac {\text {Subst}\left (\int \frac {1}{\sqrt {x} \left (e^2+x^2\right )} \, dx,x,e \tan (c+d x)\right )}{a d e}+\frac {\left (5 \sqrt {\sin (c+d x)}\right ) \int \frac {1}{\sqrt {\cos (c+d x)} \sqrt {\sin (c+d x)}} \, dx}{21 a e^2 \sqrt {\cos (c+d x)} \sqrt {e \tan (c+d x)}}\\ &=\frac {2 e (1-\sec (c+d x))}{7 a d (e \tan (c+d x))^{7/2}}-\frac {2 (7-5 \sec (c+d x))}{21 a d e (e \tan (c+d x))^{3/2}}-\frac {2 \text {Subst}\left (\int \frac {1}{e^2+x^4} \, dx,x,\sqrt {e \tan (c+d x)}\right )}{a d e}+\frac {\left (5 \sec (c+d x) \sqrt {\sin (2 c+2 d x)}\right ) \int \frac {1}{\sqrt {\sin (2 c+2 d x)}} \, dx}{21 a e^2 \sqrt {e \tan (c+d x)}}\\ &=\frac {2 e (1-\sec (c+d x))}{7 a d (e \tan (c+d x))^{7/2}}-\frac {2 (7-5 \sec (c+d x))}{21 a d e (e \tan (c+d x))^{3/2}}+\frac {5 F\left (\left .c-\frac {\pi }{4}+d x\right |2\right ) \sec (c+d x) \sqrt {\sin (2 c+2 d x)}}{21 a d e^2 \sqrt {e \tan (c+d x)}}-\frac {\text {Subst}\left (\int \frac {e-x^2}{e^2+x^4} \, dx,x,\sqrt {e \tan (c+d x)}\right )}{a d e^2}-\frac {\text {Subst}\left (\int \frac {e+x^2}{e^2+x^4} \, dx,x,\sqrt {e \tan (c+d x)}\right )}{a d e^2}\\ &=\frac {2 e (1-\sec (c+d x))}{7 a d (e \tan (c+d x))^{7/2}}-\frac {2 (7-5 \sec (c+d x))}{21 a d e (e \tan (c+d x))^{3/2}}+\frac {5 F\left (\left .c-\frac {\pi }{4}+d x\right |2\right ) \sec (c+d x) \sqrt {\sin (2 c+2 d x)}}{21 a d e^2 \sqrt {e \tan (c+d x)}}+\frac {\text {Subst}\left (\int \frac {\sqrt {2} \sqrt {e}+2 x}{-e-\sqrt {2} \sqrt {e} x-x^2} \, dx,x,\sqrt {e \tan (c+d x)}\right )}{2 \sqrt {2} a d e^{5/2}}+\frac {\text {Subst}\left (\int \frac {\sqrt {2} \sqrt {e}-2 x}{-e+\sqrt {2} \sqrt {e} x-x^2} \, dx,x,\sqrt {e \tan (c+d x)}\right )}{2 \sqrt {2} a d e^{5/2}}-\frac {\text {Subst}\left (\int \frac {1}{e-\sqrt {2} \sqrt {e} x+x^2} \, dx,x,\sqrt {e \tan (c+d x)}\right )}{2 a d e^2}-\frac {\text {Subst}\left (\int \frac {1}{e+\sqrt {2} \sqrt {e} x+x^2} \, dx,x,\sqrt {e \tan (c+d x)}\right )}{2 a d e^2}\\ &=\frac {\log \left (\sqrt {e}+\sqrt {e} \tan (c+d x)-\sqrt {2} \sqrt {e \tan (c+d x)}\right )}{2 \sqrt {2} a d e^{5/2}}-\frac {\log \left (\sqrt {e}+\sqrt {e} \tan (c+d x)+\sqrt {2} \sqrt {e \tan (c+d x)}\right )}{2 \sqrt {2} a d e^{5/2}}+\frac {2 e (1-\sec (c+d x))}{7 a d (e \tan (c+d x))^{7/2}}-\frac {2 (7-5 \sec (c+d x))}{21 a d e (e \tan (c+d x))^{3/2}}+\frac {5 F\left (\left .c-\frac {\pi }{4}+d x\right |2\right ) \sec (c+d x) \sqrt {\sin (2 c+2 d x)}}{21 a d e^2 \sqrt {e \tan (c+d x)}}-\frac {\text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1-\frac {\sqrt {2} \sqrt {e \tan (c+d x)}}{\sqrt {e}}\right )}{\sqrt {2} a d e^{5/2}}+\frac {\text {Subst}\left (\int \frac {1}{-1-x^2} \, dx,x,1+\frac {\sqrt {2} \sqrt {e \tan (c+d x)}}{\sqrt {e}}\right )}{\sqrt {2} a d e^{5/2}}\\ &=\frac {\tan ^{-1}\left (1-\frac {\sqrt {2} \sqrt {e \tan (c+d x)}}{\sqrt {e}}\right )}{\sqrt {2} a d e^{5/2}}-\frac {\tan ^{-1}\left (1+\frac {\sqrt {2} \sqrt {e \tan (c+d x)}}{\sqrt {e}}\right )}{\sqrt {2} a d e^{5/2}}+\frac {\log \left (\sqrt {e}+\sqrt {e} \tan (c+d x)-\sqrt {2} \sqrt {e \tan (c+d x)}\right )}{2 \sqrt {2} a d e^{5/2}}-\frac {\log \left (\sqrt {e}+\sqrt {e} \tan (c+d x)+\sqrt {2} \sqrt {e \tan (c+d x)}\right )}{2 \sqrt {2} a d e^{5/2}}+\frac {2 e (1-\sec (c+d x))}{7 a d (e \tan (c+d x))^{7/2}}-\frac {2 (7-5 \sec (c+d x))}{21 a d e (e \tan (c+d x))^{3/2}}+\frac {5 F\left (\left .c-\frac {\pi }{4}+d x\right |2\right ) \sec (c+d x) \sqrt {\sin (2 c+2 d x)}}{21 a d e^2 \sqrt {e \tan (c+d x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains higher order function than in optimal. Order 5 vs. order 4 in
optimal.
time = 19.22, size = 1299, normalized size = 3.96 \begin {gather*} -\frac {10 e^{-i (c+d x)} \sqrt {-\frac {i \left (-1+e^{2 i (c+d x)}\right )}{1+e^{2 i (c+d x)}}} \left (1+e^{2 i (c+d x)}\right ) \cos ^2\left (\frac {c}{2}+\frac {d x}{2}\right ) \sec (2 c) \sec (c+d x) \tan ^{\frac {5}{2}}(c+d x)}{21 d (a+a \sec (c+d x)) (e \tan (c+d x))^{5/2}}-\frac {e^{-2 i c} \sqrt {-\frac {i \left (-1+e^{2 i (c+d x)}\right )}{1+e^{2 i (c+d x)}}} \left (e^{4 i c} \sqrt {-1+e^{4 i (c+d x)}} \text {ArcTan}\left (\sqrt {-1+e^{4 i (c+d x)}}\right )+2 \sqrt {-1+e^{2 i (c+d x)}} \sqrt {1+e^{2 i (c+d x)}} \tanh ^{-1}\left (\sqrt {\frac {-1+e^{2 i (c+d x)}}{1+e^{2 i (c+d x)}}}\right )\right ) \cos ^2\left (\frac {c}{2}+\frac {d x}{2}\right ) \sec (2 c) \sec (c+d x) \tan ^{\frac {5}{2}}(c+d x)}{2 d \left (-1+e^{2 i (c+d x)}\right ) (a+a \sec (c+d x)) (e \tan (c+d x))^{5/2}}-\frac {e^{-2 i c} \sqrt {-\frac {i \left (-1+e^{2 i (c+d x)}\right )}{1+e^{2 i (c+d x)}}} \left (\sqrt {-1+e^{4 i (c+d x)}} \text {ArcTan}\left (\sqrt {-1+e^{4 i (c+d x)}}\right )+2 e^{4 i c} \sqrt {-1+e^{2 i (c+d x)}} \sqrt {1+e^{2 i (c+d x)}} \tanh ^{-1}\left (\sqrt {\frac {-1+e^{2 i (c+d x)}}{1+e^{2 i (c+d x)}}}\right )\right ) \cos ^2\left (\frac {c}{2}+\frac {d x}{2}\right ) \sec (2 c) \sec (c+d x) \tan ^{\frac {5}{2}}(c+d x)}{2 d \left (-1+e^{2 i (c+d x)}\right ) (a+a \sec (c+d x)) (e \tan (c+d x))^{5/2}}+\frac {e^{-i (2 c+d x)} \sqrt {-\frac {i \left (-1+e^{2 i (c+d x)}\right )}{1+e^{2 i (c+d x)}}} \cos ^2\left (\frac {c}{2}+\frac {d x}{2}\right ) \left (3 \left (-1+e^{4 i (c+d x)}\right )+e^{4 i (c+d x)} \left (-1+e^{2 i c}\right ) \sqrt {1-e^{4 i (c+d x)}} \, _2F_1\left (\frac {1}{2},\frac {3}{4};\frac {7}{4};e^{4 i (c+d x)}\right )\right ) \sec (2 c) \sec (c+d x) \tan ^{\frac {5}{2}}(c+d x)}{3 d \left (-1+e^{2 i (c+d x)}\right ) (a+a \sec (c+d x)) (e \tan (c+d x))^{5/2}}-\frac {e^{-i d x} \sqrt {-\frac {i \left (-1+e^{2 i (c+d x)}\right )}{1+e^{2 i (c+d x)}}} \cos ^2\left (\frac {c}{2}+\frac {d x}{2}\right ) \left (3-3 e^{4 i (c+d x)}+e^{2 i (c+2 d x)} \left (-1+e^{2 i c}\right ) \sqrt {1-e^{4 i (c+d x)}} \, _2F_1\left (\frac {1}{2},\frac {3}{4};\frac {7}{4};e^{4 i (c+d x)}\right )\right ) \sec (2 c) \sec (c+d x) \tan ^{\frac {5}{2}}(c+d x)}{3 d \left (-1+e^{2 i (c+d x)}\right ) (a+a \sec (c+d x)) (e \tan (c+d x))^{5/2}}+\frac {\cos ^2\left (\frac {c}{2}+\frac {d x}{2}\right ) \sec (c+d x) \left (\frac {40}{21 d}-\frac {\csc ^2\left (\frac {c}{2}+\frac {d x}{2}\right )}{6 d}-\frac {2 (21-10 \cos (c)+21 \cos (2 c)) \cos (d x) \sec (2 c)}{21 d}-\frac {13 \sec ^2\left (\frac {c}{2}+\frac {d x}{2}\right )}{14 d}+\frac {\sec ^4\left (\frac {c}{2}+\frac {d x}{2}\right )}{14 d}+\frac {2 \sec (2 c) (-10 \sin (c)+21 \sin (2 c)) \sin (d x)}{21 d}\right ) \tan ^3(c+d x)}{(a+a \sec (c+d x)) (e \tan (c+d x))^{5/2}}-\frac {20 \sqrt [4]{-1} \cos ^2\left (\frac {c}{2}+\frac {d x}{2}\right ) F\left (\left .i \sinh ^{-1}\left (\sqrt [4]{-1} \sqrt {\tan (c+d x)}\right )\right |-1\right ) \sec ^4(c+d x) \tan ^{\frac {5}{2}}(c+d x)}{21 d (a+a \sec (c+d x)) (e \tan (c+d x))^{5/2} \left (1+\tan ^2(c+d x)\right )^{3/2}} \end {gather*}
Warning: Unable to verify antiderivative.
[In]
[Out]
________________________________________________________________________________________
Maple [C] Result contains complex when optimal does not.
time = 0.24, size = 1926, normalized size = 5.87
method | result | size |
default | \(\text {Expression too large to display}\) | \(1926\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \frac {\int \frac {1}{\left (e \tan {\left (c + d x \right )}\right )^{\frac {5}{2}} \sec {\left (c + d x \right )} + \left (e \tan {\left (c + d x \right )}\right )^{\frac {5}{2}}}\, dx}{a} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\cos \left (c+d\,x\right )}{a\,{\left (e\,\mathrm {tan}\left (c+d\,x\right )\right )}^{5/2}\,\left (\cos \left (c+d\,x\right )+1\right )} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________